<!doctype html>
<html>
<head>
  <title>Learning jQuery</title>
  <meta charset="utf-8" />
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
  <style>
  </style>
</head>

<body>
  <script type="text/javascript">
    // var regex=/great/i;
    var regex=/great/ig;
    var slogan="The Great Wall is great!";
    var result=slogan.match(regex);
    alert(result);
  </script>
</body>
</html>
